package cyb;

public class POI {
    private String id;
    private String name;
    private String type;
    private Double X;
    private Double Y;

    public POI() {
    }

    public POI(String id, String name, String type, Double x, Double y) {
        this.id = id;
        this.name = name;
        this.type = type;
        X = x;
        Y = y;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getX() {
        return X;
    }

    public void setX(Double x) {
        X = x;
    }

    public Double getY() {
        return Y;
    }

    public void setY(Double y) {
        Y = y;
    }

    @Override
    public String toString() {
        return "POI{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", X=" + X +
                ", Y=" + Y +
                '}';
    }

    public double[] getXY() {
        return new double[]{X, Y};
    }
}
